package com.javaclimb.mapper;

import com.javaclimb.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品
 */
public interface GoodsMapper {
    List<Goods> getList(Goods goods);
    int add(Goods goods);
    int delete(Goods goods);
    int update(Goods goods);
    int updateState(Goods goods);

    void updateCount(@Param("goodsId") Integer goodsId, @Param("num") Integer num);


    Goods selectById(@Param("goodsId") Integer goodsId);
}
